﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="SZSLSystem.Web.Admin.Organization.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>部门机构管理</title>
    <link rel="stylesheet" type="text/css" href="../Images/style.css" />
    <script type="text/javascript" src="../../Js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function () {
			        $(this).addClass("tr_hover_col");
			    },
			    function () {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <b>您当前的位置：首页 &gt; 系统设置 &gt; 部门机构列表</b></div>
    <div class="spClear">
    </div>
    <asp:Repeater ID="rptClassList" runat="server" OnItemDataBound="rptClassList_ItemDataBound"
        OnItemCommand="rptClassList_ItemCommand">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th align="left">
                        部门机构名称
                    </th>
                    <th width="40%">
                        结构描述
                    </th>
                    <th width="8%">
                        优先级别
                    </th>
                    <th width="25%">
                        管理操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:HiddenField ID="txtID" runat="server" Value='<%#Eval("ID") %>' />
                    <asp:HiddenField ID="txtName" runat="server" Value='<%#Eval("OrganizationName") %>' />
                    <asp:HiddenField ID="txtClassLayer" runat="server" Value='<%#Eval("ClassLayer") %>' />
                    <asp:Literal ID="LitFirst" runat="server"></asp:Literal>
                    <a href="User/List.aspx?OrgID=<%#Eval("ID") %>" title="查看<%#Eval("OrganizationName") %>部门人员">
                        <%# Eval("OrganizationName")%></a>
                </td>
                <td align="center">
                    <%# Eval("Description")%>
                </td>
                <td align="center">
                    <%# Eval("Sort") %>
                </td>
                <td align="center">
                    <span>[<a href="Add.aspx?ParentID=<%# Eval("ID") %>">添加</a>]</span> <span>[<a href="Edit.aspx?ID=<%# Eval("ID") %>">修改</a>]</span>
                    <span>[<asp:LinkButton ID="lbDel" CommandName="btndel" runat="server" OnClientClick="return confirm( '该操作会删除本类别和下属类别，确定要删除吗？ ');">删除</asp:LinkButton>]</span>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    </form>
</body>
</html>
